<?php
/**
 * Auth_model Class
 *
 */
class Kotadanprov_model extends CI_Model {
	/**
	 * Constructor
	 */
	function Kotadanprov_model()
		{
			parent::__construct();
		}
	
	function get_all_kota(){
		$this->db->select('kota.id_kota, kota.nama_kota');
		$this->db->from('kota');
		return $this->db->get()->result();
	}
	
	function get_all_prov(){
		$this->db->select('*');
		$this->db->from('prov');
		return $this->db->get()->result();
	}
		
}